

class HomePageModel {
  HomePageModel({
    required this.swipers,
    required this.logos,
    required this.quicks,
    required this.pageRow,
  });
  late final List<Swipers> swipers;
  late final List<Logos> logos;
  late final List<Quicks> quicks;
  late final PageRow pageRow;

  HomePageModel.fromJson(Map<String, dynamic> json){
    swipers = List.from(json['swipers']).map((e)=>Swipers.fromJson(e)).toList();
    logos = List.from(json['logos']).map((e)=>Logos.fromJson(e)).toList();
    quicks = List.from(json['quicks']).map((e)=>Quicks.fromJson(e)).toList();
    pageRow = PageRow.fromJson(json['pageRow']);
  }

  Map<String, dynamic> toJson() {
    final _data = <String, dynamic>{};
    _data['swipers'] = swipers.map((e)=>e.toJson()).toList();
    _data['logos'] = logos.map((e)=>e.toJson()).toList();
    _data['quicks'] = quicks.map((e)=>e.toJson()).toList();
    _data['pageRow'] = pageRow.toJson();
    return _data;
  }
}

class Swipers {
  Swipers({
    required this.image,
  });
  late final String image;

  Swipers.fromJson(Map<String, dynamic> json){
    image = json['image'];
  }

  Map<String, dynamic> toJson() {
    final _data = <String, dynamic>{};
    _data['image'] = image;
    return _data;
  }
}

class Logos {
  Logos({
    required this.image,
    required this.title,
  });
  late final String image;
  late final String title;

  Logos.fromJson(Map<String, dynamic> json){
    image = json['image'];
    title = json['title'];
  }

  Map<String, dynamic> toJson() {
    final _data = <String, dynamic>{};
    _data['image'] = image;
    _data['title'] = title;
    return _data;
  }
}

class Quicks {
  Quicks({
    required this.image,
    required this.price,
  });
  late final String image;
  late final String price;

  Quicks.fromJson(Map<String, dynamic> json){
    image = json['image'];
    price = json['price'];
  }

  Map<String, dynamic> toJson() {
    final _data = <String, dynamic>{};
    _data['image'] = image;
    _data['price'] = price;
    return _data;
  }
}

class PageRow {
  PageRow({
    required this.ad1,
    required this.ad2,
  });
  late final List<String> ad1;
  late final List<String> ad2;

  PageRow.fromJson(Map<String, dynamic> json){
    ad1 = List.castFrom<dynamic, String>(json['ad1']);
    ad2 = List.castFrom<dynamic, String>(json['ad2']);
  }

  Map<String, dynamic> toJson() {
    final _data = <String, dynamic>{};
    _data['ad1'] = ad1;
    _data['ad2'] = ad2;
    return _data;
  }
}